import hasPermi from './permission/hasPermi';
import hasRole from './permission/hasRole';
// 批量注册指令
const directives = {
  hasPermi,
  hasRole
};
export default {
  install (Vue) {
    Object.keys(directives).forEach(key => {
      Vue.directive(key, directives[key]);
    });
  },
};
